import { IParam } from '../../common';
import { IViewModel } from './i-view-model';

export interface IMDViewModel extends IViewModel {
	/**
	 * 是否开启快速分组
	 *
	 * @type {boolean}
	 * @memberof IMDViewModel
	 */
	enableQuickGroup?: boolean;

	/**
	 * 快速分组代码表
	 *
	 * @type {string}
	 * @memberof IMDViewModel
	 */
	quickGroupCodeList?: string;

	/**
	 * 允许快速搜索
	 *
	 * @type {boolean}
	 * @memberof IMDViewModel
	 */
	enableQuickSearch?: boolean;

	/**
	 * 展开搜索表单
	 *
	 * @type {boolean}
	 * @memberof IMDViewModel
	 */
	expandSearchForm?: boolean;

	/**
	 * 工具栏
	 *
	 * @type {IParam[]}
	 * @memberof IMDViewModel
	 */
	toolbarItems?: IParam[];

	/**
	 * 打开编辑视图
	 *
	 * @type {IParam}
	 * @memberof IGridViewModel
	 */
	openData?: IParam;

	/**
	 * 打开新建视图
	 *
	 * @type {IParam}
	 * @memberof IGridViewModel
	 */
	newData?: IParam;
}
